home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / tmed160a.zip / TMED.DOC < prev    next >
Text File  |  1993-03-30  |  14KB  |  298 lines

  1.  
  2.  
  3.  
  4.   TMED is copyrighted 1992 by Liang Chen. No portion of this program may be
  5.   reproduced without the written permission of Liang Chen. It is FREE. Good
  6.   suggestion for major enhancement from the user are welcomed.
  7.  
  8.   STANDARD DISCLAIMERS: THE COPYRIGHT HOLDER OFFERS NO WARRANTY WITH THIS
  9.   PROGRAM WHATSOEVER. NEITHER SHALL HE BE LIABLE FOR DAMAGES OF ANY KIND
  10.   THAT MAY ARISE FROM ITS USE.
  11.  
  12.  
  13.  
  14.  
  15.                                  INTRODUCTION
  16.  
  17.   TMED is a TSR memory editor which takes less 8k memory when is loaded.
  18.   It can be used as an auxiliary debugging tool for programmers, or
  19.   sometime as a gamebuster. TMED can view what is in the memory and edit
  20.   the memory while other programs are running. TMED works great with Turbo
  21.   Debugger.
  22.  
  23.   TMED versions after 1.20 come with a key macro function. Since TMED is
  24.   resident in the memory, this key macro function may be used for any
  25.   other foreground running programs. But if the foreground programs also
  26.   hook to the INT08, INT09 handlers and use it heavily, the time delay
  27.   by the foreground program may cause problems for the macro function.
  28.   This is because a BIOS problem that some keys are overwritten before
  29.   it can be read.
  30.  
  31.  
  32.   WARNING:  TMED is not bug proof. The system may halt due to an
  33.             improper operation (such as editing or loading in critical
  34.             memory area, set wrong breakpoints, enter wrong data,
  35.             etc.). It will not work for some programs. You have to try
  36.             to see if it works under certain programs. Not all people
  37.             will benefit from this program. You have to know something
  38.             about the computer in order to make full use of it.
  39.  
  40.  
  41.                                   OPERATION
  42.  
  43.   LOADING:
  44.  
  45.             Enter 'TMED' at DOS prompt, then press <RETURN>.
  46.  
  47.  
  48.   INVOCATION:
  49.  
  50.             There are two ways to invoke the TMED, a) Hotkey: press left
  51.             <Ctrl> key twice; b) Breakpoint; it will pause and invoke
  52.             TMED when DOS runs to breakpoint (See how to set breakpoint
  53.             in the following instructions). If the invocation is
  54.             successful, TMED will display a memory page (256 bytes) in
  55.             hex and ascii codes and the command options.
  56.  
  57.             (Try to run TMED as a TSR now and activate it (press the
  58.             left <Ctrl> key twice) while you are reading this file. It
  59.             will help you understand the following commands.)
  60.  
  61.  
  62.   KEY MACRO FUNCTIONS:
  63.  
  64.             Macro function may be used any time when the TMED is in
  65.             resident. The macro buffer are big enough for 192 keys.
  66.  
  67.             Press Mky1 (default F11 key) once to record the key macro
  68.             (you will hear a short sound). Press F11 again will end
  69.             macro recording mode (you will hear a longer sound).
  70.  
  71.             Press Mky2 (default F12 key) will execute the key macro.
  72.             There is no time delay while executing the key macro.
  73.  
  74.             If you press Mky2 key while macro is in recording mode, then
  75.             it is a recursive macro. For example, you can let a
  76.             recursive macro continuously turns page for you. While
  77.             a recursive macro is executing, press any key will stop the
  78.             macro running.
  79.  
  80.             Mky1 and Mky2 may be assigned to other keys (see below), in
  81.             case these keys are used by the foreground running programs.
  82.  
  83.  
  84.   COMMANDS:
  85.             Commands are invoked by pressing the <Alt> key with the upper
  86.             case letter in the command option line.
  87.  
  88.  
  89.       TMED: <Alt>-T will display the TMED data segment. The cursor will
  90.             be placed at the first byte of the string input buffer. To
  91.             reduce the size of TMED, some data are entered by editing
  92.             the corresponding memory addresses in the data segment.
  93.             Useful information shown in this page and next page are:
  94.  
  95.                   Mode:XBodc:X        Editing mode and screen board
  96.                                           color.
  97.                                           May be changed by editor.
  98.  
  99.                   Txtc:XHilc:X        Text color and highlight
  100.                                           color. highlight color are
  101.                                           used to display bytes in
  102.                                           memory that are different from
  103.                                           the saved buffer or dumped
  104.                                           file. The saved memory buffer
  105.                                           is 256 bytes (a page). May be
  106.                                           changed by editor.
  107.  
  108.                   Swpg:XSwmd:X        Switch page and video mode
  109.                                           when TMED is invoked. TMED
  110.                                           will try to work in different
  111.                                           video page. If it does not
  112.                                           work normally, try different
  113.                                           Txtc, Hilc, Swpg. TMED does
  114.                                           not save the original screen.
  115.                                           After quit TMED, programs will
  116.                                           operate as before the popup.
  117.                                           But the graphic display and
  118.                                           colors may be changed. May be
  119.                                           changed by editor.
  120.  
  121.  
  122.                                           NOTE: AFTER CHANGING THE SWPG,
  123.                                           ALL DISPLAY WILL OUTPUT TO THE
  124.                                           NEW PAGE. YOU SHOULD QUIT
  125.                                           EDITOR MODE AND TMED, THEN
  126.                                           POPUP AGAIN.
  127.  
  128.                   Odpg:XOdmd:X        Old video mode and page before
  129.                                           popup. Please do not change it.
  130.  
  131.                   Endc:XWldc:X        The ending char and the wild
  132.                                           char in the search string. By
  133.                                           default, ending char is hex
  134.                                           00; wild char is hex FF. For
  135.                                           example, to find
  136.  
  137.                                                instruction        hex
  138.  
  139.                                                cmp     al,XX      3C XX
  140.                                                jne     XX         75 XX
  141.  
  142.                                           the search string may be
  143.                                           entered as (in hex)
  144.  
  145.                                                3C FF 75 00
  146.  
  147.                                           Endc and Wldc may be changed
  148.                                           by editor.
  149.  
  150.                   Ustc:XCsrc:X        Unset breakpoint byte and
  151.                                           cursor color. By default, Ustc
  152.                                           is hex 'CD' (hex code for
  153.                                           interrupt 'int'); May be
  154.                                           changed by editor.
  155.  
  156.  
  157.                   AX= XXBX= XX        The register values before popup
  158.                   CX= XXDX= XX        or breakpoint.
  159.                   SI= XXDI= XX
  160.  
  161.                   CS= XXIP= XX        CS:IP, next instruction address
  162.                                           after breakpoint pause.
  163.  
  164.                   Line of input:        16 bytes string buffer for 'Find'
  165.                   XXXXXXXXXXXXXXXX        command. Using editor
  166.                                           to change the string.
  167.  
  168.                                (next memory page)
  169.  
  170.                   Seg1XXSeg2XX        Search start and end segment
  171.                                           addresses. By default, Seg1 is
  172.                                           set to the top memory address of
  173.                                           TMED; Seg2 is set to A000, ie.,
  174.